package org.ellwood.core.common.entity;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

/**
 * @ProjectName: ellwood-boot-pro
 * @PackageName: org.ellwood.core.common.entity
 * @ClassName: UserPermissionChangeMessage
 * @Description: // 用户权限更改消息
 * @Author: Ellwood
 * @CreateDate: 2024/6/18 - 上午10:46
 * @Version: V1.0.0
 */
@Data
public class UserPermissionChangeMessage {

    @Schema(description = "username")
    private String username;

    @Schema(description ="用户id")
    private Long userId;

    private boolean toChangeAll;

    public UserPermissionChangeMessage() {
    }

    public UserPermissionChangeMessage(String username, Long userId, boolean toChangeAll) {
        this.username = username;
        this.userId = userId;
        this.toChangeAll = toChangeAll;
    }

    public UserPermissionChangeMessage(String username, boolean toChangeAll) {
        this.username = username;
        this.toChangeAll = toChangeAll;
    }
}
